package com.lean.android.projecttemplate.ui.speed

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import com.lean.android.projecttemplate.ui.TopLevelDestination

val SPEED_ROUTE = TopLevelDestination.Speed.route

fun NavController.navigateToSpeed(navOptions: NavOptions? = null) =
    navigate(SPEED_ROUTE, navOptions)

fun NavGraphBuilder.speedScreen(navController: NavController) {
    composable(SPEED_ROUTE) {
        SpeedScreen(navController)
    }
}